package com.sh.pojo.vo;

import com.sh.pojo.domain.YunQiaoUserDomain;
import lombok.Data;

import java.util.List;

@Data
public class UserInfoVO {
    private String id;
    private String code;
    private String name;
    private List<String> phone;
    private List<String> email;
    private Boolean status;
    private Boolean deleted;

    public void setYunQiaoUser(YunQiaoUserDomain yunQiaoUser) {
        id = yunQiaoUser.getId();
        code = yunQiaoUser.getUserName();
        name = yunQiaoUser.getDisplayName();
        phone = yunQiaoUser.getPhoneNumbers();
        email = yunQiaoUser.getEmails();
        status = yunQiaoUser.getActive();
        deleted = yunQiaoUser.getDeleted();
    }
}
